﻿@using Sausage.Web.Models
@using Sausage.Web.DataModel
@using Telerik.Web.Mvc.UI
@using Sausage.Web.Domain
@model Sausage.Web.DataModel.ProjectQuantity
@{
    ViewBag.Title = ViewBag.Title = string.Format("查看工程日志（{0}－{1:yyyy年MM月dd日}）", Model.Project.ProjectName, Model.ApplicationDate);
    Layout = "~/Views/Shared/MainLayout.cshtml";
}
@section HeadCssLink
{
    <link href="@Url.Content("~/Content/Styles/ext-patch.css")" rel="stylesheet" type="text/css" />
}
@section HeadScriptLink
{
    <script src="@Url.Content("~/Scripts/ExtJS/locale/ext-lang-zh_CN.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/common.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/model.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Sausage/ProjectJournal/View.js")" type="text/javascript"></script>
    <script type="text/javascript">
        //创建过滤条件
        var filter_condition =
        [
            {
                property: 'OrganizationID',
                value: '@Html.Raw(Model.ProjectID.ToString())'
            },
            {
                property: 'ApplicationDate_L',
                value: '@Html.Raw(Model.ApplicationDate.ToString("yyyy/MM/dd"))'
            },
            {
                property: 'ApplicationDate_H',
                value: '@Html.Raw(Model.ApplicationDate.AddDays(1).ToString("yyyy/MM/dd"))'
            }
        ]
    </script>
}
<h2>
    @ViewBag.Title
</h2>
<br />
<div id="data-grid" class="div-grid-box">
</div>
